import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:leader_help/utils/component/component.dart';

import 'index.dart';
import 'widgets/content.dart';
import 'widgets/widgets.dart';

class QuestionDetailPage extends GetView<QuestionDetailController> {
  const QuestionDetailPage({Key? key}) : super(key: key);

  // 内容页
  Widget _buildView() {
    return Column(
      children: const [
        QuestionDetailHeader(),
        Expanded(child: QuestionDetailContentView()),
      ],
    );
  }

  @override
  Widget build(BuildContext context) {
    return GetBuilder<QuestionDetailController>(
      builder: (_) {
        return Scaffold(
          appBar: detailAppBar(context, title: '问题详情'),
          body: SafeArea(
            child: _buildView(),
          ),
        );
      },
    );
  }
}
